/**
 * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package slcu.model;

import java.io.Serializable;

import java.util.ArrayList;
import java.util.List;

/**
 * This class is used by SOAP remote services.
 *
 * @author    tito
 * @generated
 */
public class DisciplinaSoap implements Serializable {
	public static DisciplinaSoap toSoapModel(Disciplina model) {
		DisciplinaSoap soapModel = new DisciplinaSoap();

		soapModel.setDisciplinaId(model.getDisciplinaId());
		soapModel.setNombre(model.getNombre());
		soapModel.setMinimoPorEquipo(model.getMinimoPorEquipo());
		soapModel.setMaximoPorEquipo(model.getMaximoPorEquipo());
		soapModel.setRequiereHabilitacion(model.getRequiereHabilitacion());
		soapModel.setTipoEvento(model.getTipoEvento());

		return soapModel;
	}

	public static DisciplinaSoap[] toSoapModels(Disciplina[] models) {
		DisciplinaSoap[] soapModels = new DisciplinaSoap[models.length];

		for (int i = 0; i < models.length; i++) {
			soapModels[i] = toSoapModel(models[i]);
		}

		return soapModels;
	}

	public static DisciplinaSoap[][] toSoapModels(Disciplina[][] models) {
		DisciplinaSoap[][] soapModels = null;

		if (models.length > 0) {
			soapModels = new DisciplinaSoap[models.length][models[0].length];
		}
		else {
			soapModels = new DisciplinaSoap[0][0];
		}

		for (int i = 0; i < models.length; i++) {
			soapModels[i] = toSoapModels(models[i]);
		}

		return soapModels;
	}

	public static DisciplinaSoap[] toSoapModels(List<Disciplina> models) {
		List<DisciplinaSoap> soapModels = new ArrayList<DisciplinaSoap>(models.size());

		for (Disciplina model : models) {
			soapModels.add(toSoapModel(model));
		}

		return soapModels.toArray(new DisciplinaSoap[soapModels.size()]);
	}

	public DisciplinaSoap() {
	}

	public long getPrimaryKey() {
		return _disciplinaId;
	}

	public void setPrimaryKey(long pk) {
		setDisciplinaId(pk);
	}

	public long getDisciplinaId() {
		return _disciplinaId;
	}

	public void setDisciplinaId(long disciplinaId) {
		_disciplinaId = disciplinaId;
	}

	public String getNombre() {
		return _nombre;
	}

	public void setNombre(String nombre) {
		_nombre = nombre;
	}

	public long getMinimoPorEquipo() {
		return _minimoPorEquipo;
	}

	public void setMinimoPorEquipo(long minimoPorEquipo) {
		_minimoPorEquipo = minimoPorEquipo;
	}

	public long getMaximoPorEquipo() {
		return _maximoPorEquipo;
	}

	public void setMaximoPorEquipo(long maximoPorEquipo) {
		_maximoPorEquipo = maximoPorEquipo;
	}

	public boolean getRequiereHabilitacion() {
		return _requiereHabilitacion;
	}

	public boolean isRequiereHabilitacion() {
		return _requiereHabilitacion;
	}

	public void setRequiereHabilitacion(boolean requiereHabilitacion) {
		_requiereHabilitacion = requiereHabilitacion;
	}

	public String getTipoEvento() {
		return _tipoEvento;
	}

	public void setTipoEvento(String tipoEvento) {
		_tipoEvento = tipoEvento;
	}

	private long _disciplinaId;
	private String _nombre;
	private long _minimoPorEquipo;
	private long _maximoPorEquipo;
	private boolean _requiereHabilitacion;
	private String _tipoEvento;
}